package com.ncmem.model;

import java.io.ByteArrayOutputStream;

public class Up7Exception extends Exception {

    public Up7Exception(){}
    public Up7Exception(FileInf f, ByteArrayOutputStream b, String msg){
        super(msg);

        String tmp="b   lockSize：%d\n"
                .concat("blockSizeCpr:%d\n")
                .concat("blockCprType:%s\n")
                .concat("blockSizeCry:%d\n")
                .concat("blockEncryptAgo:%s\n")
                ;
        String s = String.format(tmp,
                f.blockSize,
                f.blockSizeCpr,
                f.blockCprType,
                f.blockSizeCry,
                f.encryptAgo
        );
        System.out.println(s);
    }
    public Up7Exception(String s){
        super(s);
    }
}
